package jfinal42.ctrl;

import java.util.List;

import jfinal42.model.Category;

import com.jfinal.core.Controller;

public class CategoryController extends Controller {
	public void list() {
		List<Category> lis = Category.DAO
				.find("select * from category order by id desc");
		// super.setAttr(name, value)
		super.renderJson(lis);
	}
}
